package com.SouthernWall_404.AgeRight.Common.Init;


import com.SouthernWall_404.AgeRight.Common.Event.RegisterLockableBlocksEvent;
import net.minecraft.tags.BlockTags;
import net.minecraft.world.level.block.Blocks;
import net.minecraftforge.common.Tags;
import net.minecraftforge.eventbus.api.SubscribeEvent;

public class ModLockableBlocks {
    @SubscribeEvent
    public static void onRegisterLockableBlocks(RegisterLockableBlocksEvent event) {
        // 1. 储存容器类
        event.register(Tags.Blocks.CHESTS); // 所有箱子
        event.register(Tags.Blocks.BARRELS); // 所有木桶

        // 特殊容器
        event.register(Blocks.HOPPER);
        event.register(Blocks.DROPPER);
        event.register(Blocks.DISPENSER);

        // 2. 工作站类
        event.register(Blocks.CRAFTING_TABLE);
        event.register(Blocks.FURNACE);
        event.register(Blocks.BLAST_FURNACE);
        event.register(Blocks.SMOKER);
        event.register(Blocks.ENCHANTING_TABLE);
        event.register(Blocks.ANVIL);
        event.register(Blocks.CHIPPED_ANVIL);
        event.register(Blocks.DAMAGED_ANVIL);
        event.register(Blocks.BREWING_STAND);
        event.register(Blocks.CAULDRON);
        event.register(Blocks.LOOM);
        event.register(Blocks.SMITHING_TABLE);
        event.register(Blocks.CARTOGRAPHY_TABLE);
        event.register(Blocks.FLETCHING_TABLE);
        event.register(Blocks.GRINDSTONE);
        event.register(Blocks.STONECUTTER);

        // 3. 门类
        event.register(BlockTags.DOORS); // 所有门
        event.register(BlockTags.FENCE_GATES); // 所有栅栏门
        event.register(BlockTags.TRAPDOORS); // 所有活板门
    }
}